![]() |
Editing FieldsIf an application isn't primarily a text application, but does use text in text entry fields (such as in a dialog box), you may not need to provide the full text-editing capabilities described so far. In Macintosh applications, the simplest way to implement text editing is to use TextEdit, or to use the Dialog Manager, which in turn uses TextEdit. It's important, however, that whatever editing capabilities the application provides under these circumstances be upward-compatible with the full text-editing capabilities. The application should support the following editing capabilities:
for a field is a string of digits, the application should alert the user if any nondigits are typed. The alert message might remind the user that the letters l and o can't be used in place of the numerals 1 and 0. Alternatively, the application could wait until the user is through typing before checking the validity of a field's contents. In this case, the appropriate time to check the field is when the user clicks anywhere other than in the field or presses the Return, Enter, or Tab key.
|
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help